# @Time : 2025-01-10 10:38
# @Author : Fioman 
# @Phone : 13149920693
"""
Modal配置,各个弹窗的Modal的配置,和前端对应上
"""
from enum import Enum
from typing import TypedDict


class ModalType(Enum):
    Notification = "Notification"
    StartProduce = "StartProduce"
    TotalboardError = "TotalboardError"
    BoardSizeCheck = "BoardSizeCheck"
    CutLineCheck = "CutLineCheck"
    DeviceLock = "DeviceLock"
    InnerBoardHand1pin = "InnerBoardHand1pin"
    NotFirstCutLine = "NotFirstCutLine"
    FirstCutLine  = "FirstCutLine"

class NotificationConfigType(TypedDict):
    type: str  # 类型
    title: str  # 标题
    content: str  # 内容
    visible: bool  # 是否打开


NotificationConfig: NotificationConfigType = {
    "type": ModalType.Notification.name,
    "title": "通知弹窗",
    "content": "这是一个通知",
    "visible": False
}
